﻿@model CMS.Web.Areas.Admin.Models.LoginViewModel



<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Login</title>
    @Styles.Render("~/Content/controlcss")
    @Scripts.Render("~/bundles/modernizr")
</head>
<body>
    @Scripts.Render("~/bundles/jquery")
    @Scripts.Render("~/bundles/jqueryval")

    <div class="loginForm">
        @Html.ValidationSummary(true, "", new { @class = "text-danger"})
        

        <div class="form-horizontal">
            <h2 class="text-primary">登录</h2>
            @using(Html.BeginForm())
            {
                @Html.AntiForgeryToken()
                <div class="form-group form-group-lg">
                    @Html.EditorFor(m => m.Accounts, new { htmlAttributes = new { @class = "form-control", placeholder = "请输入账号" } })
                    @Html.ValidationMessageFor(m => m.Accounts, "", new { @class = "text-danger"})
                </div>
                <div class="form-group">
                    @Html.EditorFor(m => m.Password, new { htmlAttributes = new { @class="form-control", placeholder = "请输入密码"} })
                    @Html.ValidationMessageFor(m => m.Password, "", new { @class = "text-danger" })
                </div>
                <div class="form-group">
                    <button type="submit" class="btn btn-default pull-left">登录</button>
                </div>
            }
        </div>
    </div>
</body>
</html>